package com.lagou.service;

import com.lagou.pojo.Course;
import com.lagou.pojo.Course_Lesson;
import com.lagou.pojo.Course_Section;

import java.util.List;

/**
 * @Author wsl
 * @Date 2021/10/11 19:50
 * @Project_Name maven
 *
 * 课程内容管理模块 Service层接口
 */
public interface CourseContentService {

    //1.根据课程ID查询课程相关的信息
    public List<Course_Section> findSectionAndLessonByCourseId(int courseId);

    //3.根据课程ID 回显课程信息
    public Course findCourseByCourseId(int courseId);

    //4.保存章节信息
    public String saveSection(Course_Section section);

    //5.修改章节信息
    public String updateSection(Course_Section section);

    //6.修改章节的状态
    public String updateSectionStatus(int id,int status);

    //7.保存课时信息
    public String saveLesson(Course_Lesson lesson);

    //8.修改课时信息
    public String updateLesson(Course_Lesson lesson);
}
